package org.example.aienglishapp.mapper.word;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.session.SqlSession;
import org.example.aienglishapp.entity.word.Word;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;

import java.util.List;
import java.util.Map;
import java.util.Optional;

@Mapper
public interface WordMapper {

    List<Word> findWordsByWordBook(@Param("wordBook") String wordBook);

    List<Word> getAllWords();

    Optional<Word> getWordWithExplanation(@Param("word") String word);

    String getChineseMeaning(@Param("word") String word);

    List<Word> getWordsByBook(@Param("wordBook") String wordBook);

    List<Word> getWordsByDifficulty(@Param("difficulty") String difficulty);

    List<String> getAllWordBooks();
}